package com.zeei.ems.base.service;

import com.github.pagehelper.PageHelper;
import com.zeei.ems.base.constant.GlobalConstant;

public class BasicServiceImpl {

	public void setPage(int pageNum, int pageSize) {
		pageNum = pageNum < 1 ? GlobalConstant.DEFAULT_PAGENUM : pageNum;
		pageSize = pageSize < 1 ? GlobalConstant.DEFAULT_PAGESIZE : pageSize;
		PageHelper.startPage(pageNum, pageSize);
	}

}
